import './assets/main.css'

import { createApp } from 'vue'
//
//import ElementPlus from 'element-plus'
//import 'element-plus/dist/index.css'
import App from './App.vue'
//引入组件
import GlobalComDemo from './components/GlobalComDemo.vue'

//引入ElementPlus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

//引入路由对象
import router from './router'

//引入实例化vue对象
import store from './store'

const app = createApp(App)

//正常全局组件
app.component('GlobalComDemo',GlobalComDemo)

//使用element plus
//app.use(ElementPlus)

//挂载ElementPlus
app.use(ElementPlus)

//注册vue
app.use(store)

//注册路由
app.use(router)

app.mount('#app')
